package org.example.lock;

import java.io.IOException;

public class ThisEscape {
    private int num = 8;

    public ThisEscape() {
        new Thread(() -> {
            System.out.println("num=" + num);
        }).start();
    }
    public static void main(String[] args) throws IOException {
        for (int i = 0; i < 100000; i++) {
            new ThisEscape();
        }
        System.in.read();
    }
}
